﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EIIS.FrameWork.DomainModel
{
    /// <summary>
    /// 可以持久到数据库的业务类都要继承的基类
    /// </summary>
    public abstract class Entity
    {
        public Entity() 
        { 
            CreateTime = DateTime.Now; 
            IsDelete = false; 
        }     
        /// <summary>
        /// 实体编号
        /// </summary>
        public virtual string Id { get; set; }        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; protected set; } 
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public virtual bool IsDelete { get; set; } 
    }
}
